package com.jiangxiaofei.citycloud.view;


import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;


/**
 * Created by Yangbin on 2015/9/26.
 */
public class CircleTextView extends TextView {

    private float angle = 0;
    private int position = 0;
    private String name;

    public float getAngle() {
        return angle;
    }

    public void setAngle(float angle) {
        this.angle = angle;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * @param context
     */
    public CircleTextView(Context context) {
        this(context, null);
    }

    /**
     * @param context
     * @param attrs
     */
    public CircleTextView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    /**
     * @param context
     * @param attrs
     * @param defStyle
     */
    public CircleTextView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
//        if (attrs != null) {
//            TypedArray a = getContext().obtainStyledAttributes(attrs,
//                    R.styleable.CircleTextView);
//
//            name = a.getString(R.styleable.CircleTextView_name);
//        }
    }

}
